#pragma once
#include <string>
#include <Windows.h>
#include "Vector3.h"
using std::string;

class GameObject
{
protected:
	string _textureName;
	Vector3f _position, _center;
	Vector3f _rotation, _scale;
	Vector3l _imageSize;
	Vector3l _drawPoint;
public:
	GameObject();
	~GameObject(void);
	void draw();

	void addDrawPoint(Vector3l a){_drawPoint+=a;}
	void addPosition(Vector3f p){_position+=p;}

	Vector3f getPosition(){return _position;}
	Vector3l getImageSize();

	void initTexture(string n);

	void setCenter(Vector3f c){_center=c;}
	void setDrawPoint(Vector3l p){_drawPoint=p;}
	void setImageSize(Vector3l s){_imageSize=s;}
	void setPosition(Vector3f p){_position=p;}
	void setTextureName(string n){_textureName=n;}
	void setRotationZ(float angle){_rotation.z = 3.141592f * angle/180.0f;}
};

